<?php

/**
 * @author Charles EDOU NZE <charlesen@live.fr>
 * @copyright Copyright 2011, Charles EDOU NZE
 * @version 1.0
 */
//Récupération des données du form.
include_once 'config.php';
$session = $_POST['session'];
$email = $_POST['email'];
$mdp = $_POST['mdp'];

switch ($session) {

    // Connexion au Dashboard
    case "login":
        //Test de validité de l'@
        if (($email != "")) {
            include_once 'dashboard.php';
        } else {
            include_once 'index.php';
        }
        break;

    // Deconnexion du Dashboard
    case "logout":
        include_once 'index.php';
        break;
}
?>
